package com.usian.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.usian.model.article.dtos.ApUserDto;
import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.user.dtos.UserRelationDto;
import com.usian.model.user.pojos.ApUser;

/**
 * ClassName: ApUserService
 * Author:   WGG
 * Date:    2022-11-2022/11/30-11:24
 * Version: 1.0
 * Description:
 */
public interface ApUserService extends IService<ApUser> {
    /**
     * app登录
     * @param dto
     * @return
     */
    ResponseResult login(ApUserDto dto);



    /**
     * app关注 取消关注
     * @param dto
     * @return
     */
    ResponseResult userFollow(UserRelationDto dto);

    /**
     * 根据id查询用户
     * @param id
     * @return
     */
    ApUser findById(Long id);
}
